Skip to content

🧹 chore: baseline Java 17#708

Open
gaeljw wants to merge 2 commits into
mainfrom
java17-baseline
Open

🧹 chore: baseline Java 17#708
gaeljw wants to merge 2 commits into
mainfrom
java17-baseline

Conversation

@gaeljw
Copy link
Copy Markdown
Member

@gaeljw gaeljw commented May 15, 2026

Pull Request Checklist

Fixes

Solves #707 ; built on top of #709 (read only the 2nd commit)

Purpose

Generate Java 17 class files. Upgrade the minimum required Java version to 17 for users.

Comment thread project/Common.scala Outdated
@gaeljw gaeljw mentioned this pull request May 15, 2026
@gaeljw gaeljw self-assigned this May 15, 2026
@gaeljw gaeljw added this to the 3.x milestone May 15, 2026
@gaeljw gaeljw force-pushed the java17-baseline branch from 942870c to 8fbe80e Compare May 15, 2026 13:22
@gaeljw gaeljw marked this pull request as ready for review May 15, 2026 13:23
@gaeljw gaeljw requested review from Copilot and mkurz May 15, 2026 13:23
@gaeljw gaeljw force-pushed the java17-baseline branch from 8fbe80e to 48b4dc5 Compare May 15, 2026 13:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates Anorm’s build/tooling to require Java 17 and emit Java 17 classfiles, aligning the project with the newer baseline requested in #707.

Changes:

  • Baseline compilation to Java 17 (-release 17) and update CI/publish workflows to run on Java 17.
  • Simplify cross-building by dropping Scala 2.12-specific source layout/config (Scala 2.13 + 3 only).
  • Remove the legacy anorm-iteratee module and its manual documentation section; consolidate cross-version compat helpers.

Reviewed changes

Copilot reviewed 9 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
project/Common.scala Switch default/cross Scala versions and compile target to Java 17; remove Scala 2.12-specific unmanaged source directory logic.
build.sbt Pin H2 test dependency; remove anorm-iteratee project; simplify Akka/Pekko settings now that Scala 2.12 is gone; update docs project deps.
core/src/main/scala/anorm/Compat.scala Consolidate compatibility helpers into the main source set (no longer split by Scala version directory).
core/src/main/scala-2.13-/Compat.scala Remove old Scala-version-specific Compat implementation.
akka/src/test/scala/anorm/AkkaCompat.scala Add unified Akka test compat alias.
akka/src/test/scala-2.13-/AkkaCompat.scala Remove old Scala-version-specific Akka compat file.
pekko/src/test/scala/anorm/PekkoCompat.scala Add unified Pekko test compat alias.
pekko/src/test/scala-2.13-/PekkoCompat.scala Remove old Scala-version-specific Pekko compat file.
iteratee/src/main/scala/anorm/Iteratees.scala Remove iteratee streaming integration implementation.
iteratee/src/test/scala/anorm/IterateeSpec.scala Remove iteratee module tests.
docs/manual/working/scalaGuide/main/sql/ScalaAnorm.md Remove iteratee module section from the manual.
.github/workflows/publish.yml Publish workflow now uses Java 17.
.github/workflows/build-test.yml Collapse CI matrix to Java 17 and remove Java 8/11 jobs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/manual/working/scalaGuide/main/sql/ScalaAnorm.md
Comment thread .github/workflows/build-test.yml
@gaeljw gaeljw mentioned this pull request May 15, 2026
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants